package com.smbms.dao;

import com.github.pagehelper.Page;
import com.smbms.pojo.Bill;
import com.smbms.util.PageParams;
import org.apache.ibatis.annotations.Param;

public interface BillMapper {
    int countParams(PageParams pageParams);

    Page<Bill> listParams(PageParams pageParams);

    int delBill(Integer id);

    int checkBillCode(Bill bill);

    int addBill(Bill bill);

    Bill findById(Integer id);

    int checkBillCodeUpd(@Param("billCode") String billCode, @Param("self") String self);

    int updBill(Bill bill);
}
